package org.dromara.iot.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import org.dromara.iot.domain.IotUpkeepRecord;

import java.io.Serial;
import java.io.Serializable;


/**
 * 电梯保养记录视图对象 iot_upkeep_record
 *
 * @author lsl
 * @date 2024-06-14
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = IotUpkeepRecord.class)
public class IotUpkeepRecordVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 记录ID
     */
    @ExcelProperty(value = "记录ID")
    private Long recordId;

    /**
     * 关联保养ID
     */
    @ExcelProperty(value = "关联保养ID")
    private Long upkeepId;

    /**
     * 提交人ID
     */
    @ExcelProperty(value = "提交人ID")
    private Long referUserId;

    /**
     * 审核人ID
     */
    @ExcelProperty(value = "审核人ID")
    private Long auditUserId;

    /**
     * 审核状态（1.通过，2.不通过）
     */
    @ExcelProperty(value = "审核状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "1=.通过，2.不通过")
    private String auditStatus;

    /**
     * 评分
     */
    @ExcelProperty(value = "评分")
    private String scoreMark;

    /**
     * 审核意见
     */
    @ExcelProperty(value = "审核意见")
    private String auditIdea;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;


}
